package mhcs.client;

import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Tree;
import com.google.gwt.user.client.ui.TreeItem;
import com.google.gwt.user.client.ui.FlexTable;
import com.google.gwt.user.client.ui.ScrollPanel;
import com.google.gwt.user.client.ui.HasVerticalAlignment;

public class ModuleList extends Composite{
	public ModuleList() {
		
		FlexTable flexTable = new FlexTable();
		initWidget(flexTable);
		
		ScrollPanel scrollPanel = new ScrollPanel();
		flexTable.setWidget(0, 0, scrollPanel);
		
		Tree tree = new Tree();
		scrollPanel.setWidget(tree);
		tree.setSize("100%", "100%");
		
//		TreeItem treeItem = new TreeItem("Plain");
//		tree.addItem(treeItem);
//		
//		TreeItem treeItem_1 = new TreeItem("Dormitory");
//		tree.addItem(treeItem_1);
//		
//		TreeItem treeItem_2 = new TreeItem("Food");
//		tree.addItem(treeItem_2);
//		
//		TreeItem treeItem_3 = new TreeItem("Gym");
//		tree.addItem(treeItem_3);
//		
//		TreeItem treeItem_4 = new TreeItem("Control");
//		tree.addItem(treeItem_4);
//		
//		TreeItem treeItem_5 = new TreeItem("Power");
//		tree.addItem(treeItem_5);
//		
//		TreeItem treeItem_6 = new TreeItem("Module");
//		tree.addItem(treeItem_6);
//		
//		TreeItem treeItem_7 = new TreeItem("Sanitation");
//		tree.addItem(treeItem_7);
//		
//		TreeItem treeItem_8 = new TreeItem("Airlock");
//		tree.addItem(treeItem_8);
		flexTable.getCellFormatter().setVerticalAlignment(0, 0, HasVerticalAlignment.ALIGN_TOP);
		
	}
	
}
